#!/bin/bash




function getSum(){

    echo "please  input 1th  num"
    read -r num1
    echo "please  input 2th  num"
    read -r num2
    return  $(( $num1 + $num2 ));
}
getSum
echo  " function  getSum  returned  value is  $?  "




#shell 脚本不能有 string 类型 的返回值;
function  getTodayStr(){

    local today=$(date +'%Y-%m-%d')
    echo  "$today"
    # return   "$(date + '%Y-%m-%d')"
    return "$today" ;

}

getTodayStr
echo   " function  getTodayStr  returned  value is  $?  "


